% !TEX TS-program = pdflatexmk
\input{src/preamble}

% Insert EUDET document number here:
\newcommand*\EUDETnum{EUDAQ User Manual}

% PDF info and link colours
\hypersetup{
  pdftitle={EUDAQ2 User Manual},
  pdfauthor={EUDAQ Development Team},
  pdfsubject={EUDAQ},
  pdfkeywords={EUDAQ, AIDA, EUDET, Software, User Manual},
  colorlinks=true,
  linkcolor=black, % \ref \autoref \pageref
  citecolor=blue, % \cite
  urlcolor=blue, % \url \href (external)
  filecolor=blue, % \href (local file)
}

% Load glossary
\loadglsentries{src/glossary.tex}

% Headers and Footers
\titlehead{\EUDETnum}
\lehead{\EUDETnum}
\lohead{\EUDETnum}
\automark{section}
\rehead{\headmark}
\rohead{\headmark}
\chead{}
\cfoot{\pagemark}

% Title info
\subject{
\begin{center}
\includegraphics[width=0.1\textwidth]{src/images/logo_eudet} \includegraphics[width=0.3\textwidth]{src/images/AIDA_logo_medium} 
\includegraphics[width=0.35\textwidth]{src/images/logo_aida2020}
\vspace{1.5cm}\\
\includegraphics[width=0.7\textwidth]{src/images/eudaq_logo}
\end{center}
}
\title{\Large EUDAQ2 User Manual} 
\author{\normalsize EUDAQ2 Team}
\input{src/version.tex} % defines the \CMakeLibVersion command which is
                    % set by CMake to the current EUDAQ version number
                    % (with git hash tag)
\date{\normalsize \today \\
EUDAQ \CMakeLibVersion}

\begin{document}

% Title page
\maketitle
\begin{abstract}
\noindent
This document provides an overview of the EUDAQ software framework,
the data acquisition framework originally developed for use by the
EUDET-type beam telescopes~\cite{telescopesWiki}.
It describes how to install and run the DAQ system and use many of the included utility programs,
and how users may integrate their DAQ systems into the EUDAQ framework
by writing their own: Producer, for integrating the data stream into the acquisition; DataCollector, for merging the muiltple data streams and writing to disk; and DataConverter, for converting data for offline analysis.
\end{abstract}
\newpage

% Contents
% Condense slightly to fit on one page
\begin{spacing}{0.92}
\tableofcontents
\end{spacing}

% Main sections
\include{src/License}
\include{src/Introduction}
\include{src/Installing}
\include{src/Running}
\include{src/Integration}
\include{src/Producers}
\include{src/DataCollector}
\include{src/DataConverter}
\include{src/Monitor}
\include{src/RunControl}
\include{src/NewData}
\include{src/Contributing}

% Appendices
\appendix
\include{src/PlatformIssue}
\include{src/TTreeConverter}

\printglossaries

\section*{Acknowledgements}
This project receives funding from the European Union’s Horizon 2020 Research and Innovation programme under Grant Agreement no. 654168.
The support is gratefully acknowledged.
\emph{Disclaimer}: The information herein only reflects the views of its authors and not those of the European Commission and no warranty expressed or implied is made with regard to such information or its use.

Before, this work was supported by the Commission of the European Communities under the 6\textsuperscript{th} Framework Programme ``Structuring the European Research Area,'' contract number RII3--026126, and received funding from the European Commission under the FP7 Research Infrastructures project AIDA, grant agreement no. 262025. 


%\bibliographystyle{unsrt}
\bibliographystyle{src/ClassicCite}
\bibliography{src/References}

\end{document}
